<?php

namespace Data;

class Verify extends Base {

	const VERIFY_CODE_KEY = 'verify_code_key_';

	public function setVerify($userMask, $val) {
		$key = self::VERIFY_CODE_KEY . $userMask;
		$this->getRedis()->setex($key, 60, $val);
	}

	public function getVerify($userMask) {
		$key = self::VERIFY_CODE_KEY . $userMask;
		return $this->getRedis()->get($key);
	}

}